import request from '@/utils/request'

//查询所有角色下拉列表
export function getRoleList () {
  return request({
    url: '/projectCheckTableBinding/listRole',
    method: 'get',
  })
}

//新增项目绑定的稽核表(稽核标准)
export function addProjectApi(data) {
  return request({
    url: '/projectCheckTableBinding/add',
    method: 'post',
    data
  })
}

//编辑项目绑定的稽核表(稽核标准)
export function editProjectApi(data) {
  return request({
    url: '/projectCheckTableBinding/edit',
    method: 'post',
    data
  })
}

//分页查询项目绑定的稽核表(稽核标准)
export function getProjectTableList (params) {
  return request({
    url: '/projectCheckTableBinding/pageQueryProjectTable',
    method: 'get',
    params
  })
}

//分页查询项目信息
export function getProject (params) {
  return request({
    url: '/projectCheckTableBinding/pageQueryProject',
    method: 'get',
    params
  })
}

//停用-启用项目绑定的稽核表(稽核标准)。返回更新后的状态。1-启用，0-停用
export function changeUseStatus (id) {
  return request({
    url: '/projectCheckTableBinding/changeStatus/' + id,
    method: 'post',
  })
}

//删除项目绑定的稽核表(稽核标准)
export function deleteProjectApi(id) {
  return request({
    url: '/projectCheckTableBinding/del/' + id,
    method: 'post',
  })
}
